package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.HospitalSubscribeGroupPurchaseMedicalExaminerInfoMapper;
import com.ruoyi.system.domain.HospitalSubscribeGroupPurchaseMedicalExaminerInfo;
import com.ruoyi.system.service.IHospitalSubscribeGroupPurchaseMedicalExaminerInfoService;

/**
 * 团队订单体检人信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-06-12
 */
@Service
public class HospitalSubscribeGroupPurchaseMedicalExaminerInfoServiceImpl implements IHospitalSubscribeGroupPurchaseMedicalExaminerInfoService 
{
    @Autowired
    private HospitalSubscribeGroupPurchaseMedicalExaminerInfoMapper hospitalSubscribeGroupPurchaseMedicalExaminerInfoMapper;

    /**
     * 查询团队订单体检人信息
     * 
     * @param id 团队订单体检人信息主键
     * @return 团队订单体检人信息
     */
    @Override
    public HospitalSubscribeGroupPurchaseMedicalExaminerInfo selectHospitalSubscribeGroupPurchaseMedicalExaminerInfoById(Long id)
    {
        return hospitalSubscribeGroupPurchaseMedicalExaminerInfoMapper.selectHospitalSubscribeGroupPurchaseMedicalExaminerInfoById(id);
    }

    /**
     * 查询团队订单体检人信息列表
     * 
     * @param hospitalSubscribeGroupPurchaseMedicalExaminerInfo 团队订单体检人信息
     * @return 团队订单体检人信息
     */
    @Override
    public List<HospitalSubscribeGroupPurchaseMedicalExaminerInfo> selectHospitalSubscribeGroupPurchaseMedicalExaminerInfoList(HospitalSubscribeGroupPurchaseMedicalExaminerInfo hospitalSubscribeGroupPurchaseMedicalExaminerInfo)
    {
        return hospitalSubscribeGroupPurchaseMedicalExaminerInfoMapper.selectHospitalSubscribeGroupPurchaseMedicalExaminerInfoList(hospitalSubscribeGroupPurchaseMedicalExaminerInfo);
    }

    /**
     * 新增团队订单体检人信息
     * 
     * @param hospitalSubscribeGroupPurchaseMedicalExaminerInfo 团队订单体检人信息
     * @return 结果
     */
    @Override
    public int insertHospitalSubscribeGroupPurchaseMedicalExaminerInfo(HospitalSubscribeGroupPurchaseMedicalExaminerInfo hospitalSubscribeGroupPurchaseMedicalExaminerInfo)
    {
        hospitalSubscribeGroupPurchaseMedicalExaminerInfo.setCreateTime(DateUtils.getNowDate());
        return hospitalSubscribeGroupPurchaseMedicalExaminerInfoMapper.insertHospitalSubscribeGroupPurchaseMedicalExaminerInfo(hospitalSubscribeGroupPurchaseMedicalExaminerInfo);
    }

    /**
     * 修改团队订单体检人信息
     * 
     * @param hospitalSubscribeGroupPurchaseMedicalExaminerInfo 团队订单体检人信息
     * @return 结果
     */
    @Override
    public int updateHospitalSubscribeGroupPurchaseMedicalExaminerInfo(HospitalSubscribeGroupPurchaseMedicalExaminerInfo hospitalSubscribeGroupPurchaseMedicalExaminerInfo)
    {
        hospitalSubscribeGroupPurchaseMedicalExaminerInfo.setUpdateTime(DateUtils.getNowDate());
        return hospitalSubscribeGroupPurchaseMedicalExaminerInfoMapper.updateHospitalSubscribeGroupPurchaseMedicalExaminerInfo(hospitalSubscribeGroupPurchaseMedicalExaminerInfo);
    }

    /**
     * 批量删除团队订单体检人信息
     * 
     * @param ids 需要删除的团队订单体检人信息主键
     * @return 结果
     */
    @Override
    public int deleteHospitalSubscribeGroupPurchaseMedicalExaminerInfoByIds(Long[] ids)
    {
        return hospitalSubscribeGroupPurchaseMedicalExaminerInfoMapper.deleteHospitalSubscribeGroupPurchaseMedicalExaminerInfoByIds(ids);
    }

    /**
     * 删除团队订单体检人信息信息
     * 
     * @param id 团队订单体检人信息主键
     * @return 结果
     */
    @Override
    public int deleteHospitalSubscribeGroupPurchaseMedicalExaminerInfoById(Long id)
    {
        return hospitalSubscribeGroupPurchaseMedicalExaminerInfoMapper.deleteHospitalSubscribeGroupPurchaseMedicalExaminerInfoById(id);
    }
}
